package com.fxp.project.jiuselu.web.models.fare.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fxp.project.jiuselu.web.models.fare.entity.JslUserFareApplied;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 用户已申请发票表 Mapper 接口
 * </p>
 *
 * @author Jason.Wang
 * @since 2021-11-24
 */
public interface JslUserFareAppliedMapper extends BaseMapper<JslUserFareApplied> {

    /**
     * selectJslUserFareAppliedListById: 查询当前用户的开票历史信息<br/>
     *
     * @param currentDate
     * @param userId
     * @return
     * @author Jason.Wang
     * @date 2021/11/25 12:09 上午
     */
    List<JslUserFareApplied> selectJslUserFareAppliedListById(@Param("currentDate") LocalDateTime currentDate,@Param("userId") Long userId);

    List<JslUserFareApplied> selectUserFareAppliedList(@Param("fareMoney") BigDecimal money,@Param("phone") String phone);

}
